package oxing.core;

public final class Pixmap {
	public final static byte ALPHA_8 = 1;
	public final static byte RGB_565 = 2;
	public final static byte ARGB_8888 = 4;

	public final String url;
	byte format;
	int width, height;

	public Pixmap(String url) {
		this(url, RGB_565);
	}

	public Pixmap(String url, byte format) {
		width = height = -1;
		this.format = format;
		this.url = url.intern();
	}

	public int width() {
		return width;
	}

	public int height() {
		return height;
	}

	public byte format() {
		return format;
	}
}
